home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / CIncludes / ShutDown.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-29  |  1.1 KB  |  50 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4. Created: Sunday, September 15, 1991 at 8:44 PM
  5.  ShutDown.h
  6.  C Interface to the Macintosh Libraries
  7.  
  8.  
  9.   Copyright Apple Computer, Inc. 1987-1991
  10.   All rights reserved
  11.  
  12. ************************************************************/
  13.  
  14.  
  15. #ifndef __SHUTDOWN__
  16. #define __SHUTDOWN__
  17.  
  18. #ifndef __TYPES__
  19. #include <Types.h>
  20. #endif
  21.  
  22.  
  23. enum {
  24.  
  25.  sdOnPowerOff = 1,        /*call procedure before power off.*/
  26.  sdOnRestart = 2,        /*call procedure before restart.*/
  27.  sdOnUnmount = 4,        /*call procedure before unmounting.*/
  28.  sdOnDrivers = 8,        /*call procedure before closing drivers.*/
  29.  sdRestartOrPower = 3    /*call before either power off or restart.*/
  30. };
  31.  
  32. typedef pascal void (*ShutDwnProcPtr)(void);
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. pascal void ShutDwnPower(void)
  38.  = {0x3F3C,0x0001,0xA895}; 
  39. pascal void ShutDwnStart(void)
  40.  = {0x3F3C,0x0002,0xA895}; 
  41. pascal void ShutDwnInstall(ShutDwnProcPtr shutDownProc,short flags)
  42.  = {0x3F3C,0x0003,0xA895}; 
  43. pascal void ShutDwnRemove(ShutDwnProcPtr shutDownProc)
  44.  = {0x3F3C,0x0004,0xA895}; 
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. #endif
  50.